package org.hy.pay.message.exception;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hy.pay.common.core.exception.BizException;


public class MessageBizException  extends BizException{

	/**
	 * 
	 */
	private static final Log  Log = LogFactory.getLog(MessageBizException.class);
	
	private static final long serialVersionUID = 1L;
	
	public static final int SAVE_MESSAGE_IS_NULL = 8001;
	
	public static final int MESSAGE_CONSUMER_QUEUE_IS_NULL = 8002;
	

	  //重复提交
    public static final int REPEATED_COMMIT = 10050001;
  
    //找不到此字段
    public static final int NO_SUCH_FIELD_ERROR = 10050002;
    
    //字段配置错误
    public static final int FIELD_CONF_ERROR = 10050003;
    
    //格式化(转化)数据出错
    public static final int PARSE_DATA_ERROR = 10050004;
    
    //未知错误
    public static final int UNKNOW_EXCEPTION = 10050005;
	
	
	
	public MessageBizException(){
		
	}
	
	public MessageBizException(int code ,String msgFormat,Object... args){
		super(code,msgFormat,args);
	} 
	
	public MessageBizException(int code,String msgFormat){
		super(code,msgFormat);
	}
	
	public MessageBizException print(){
		Log.info("===========>MessageException,code= "+this.code+",msg:"+this.msg);
		return this;
	}

}
